TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule C

Total Complexity 102
Dependencies 5
Dependents 21
Total lines 592
Lines of code 345
Logical lines of code 161
Comment lines 148
Methods 53
Properties 22

Methods 53

Method Rating Maintainability Complexity Lines of code
_matchRequirements()
B
42 22 50
fromArray()
A
49 10 27
validatePricing()
S
60 7 12
build()
S
44 2 45
readPricingRules()
S
65 4 8
save()
S
51 2 26
asArray()
S
52 1 24
setMinimum()
S
78 2 3
isValidPricing()
S
68 2 8
setRegularPrice()
S
78 2 3
getSettings()
S
71 2 6
setApplyingType()
S
77 2 3
setPricingType()
S
77 2 3
setDiscountType()
S
77 2 3
setTieredPricingType()
S
77 2 3
getIncludedUserRoles()
S
82 1 3
getExcludedUserRoles()
S
82 1 3
setIncludedUsersRole()
S
81 1 3
matchRequirements()
S
65 1 10
setExcludedUsersRole()
S
81 1 3
isSuspended()
S
82 1 3
setIsSuspended()
S
81 1 3
reactivate()
S
81 1 3
getIncludedUsers()
S
82 1 3
getExcludedUsers()
S
82 1 3
suspend()
S
81 1 3
setIncludedUsers()
S
81 1 3
setExcludedUsers()
S
81 1 3
setIncludedProducts()
S
81 1 3
setExcludedProducts()
S
81 1 3
getId()
S
82 1 3
getExcludedProducts()
S
82 1 3
getApplyingType()
S
82 1 3
getDiscount()
S
82 1 3
setDiscount()
S
81 1 3
getDiscountType()
S
82 1 3
getTieredPricingType()
S
82 1 3
getPercentageTieredPricingRules()
S
82 1 3
setPercentageTieredPricingRules()
S
81 1 3
getFixedTieredPricingRules()
S
82 1 3
setFixedTieredPricingRules()
S
81 1 3
getPricingType()
S
82 1 3
getIncludedProducts()
S
82 1 3
getTieredPricingRules()
S
81 1 3
getRegularPrice()
S
82 1 3
getSalePrice()
S
82 1 3
setSalePrice()
S
81 1 3
getMinimum()
S
82 1 3
setId()
S
81 1 3
getExcludedProductCategories()
S
82 1 3
setIncludedProductCategories()
S
81 1 3
setExcludedProductCategories()
S
81 1 3
getIncludedProductCategories()
S
82 1 3